package cn.ccimage.passwordkeeper;

import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import org.w3c.dom.Text;

/**
 * Created by Administrator on 2017/9/8.
 */

public class FingerprintDialog extends AlertDialog {
    /**
     *
     * @param context 上下文对象
     */
    public FingerprintDialog(Context context) {
        super(context);

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.fingerprint_dialog);

        //点击提示框外面是否取消提示框
        setCanceledOnTouchOutside(false);
        //点击返回键是否取消提示框
        setCancelable(false);
    }

    public void showInfo(int resId) {
        TextView text = (TextView)findViewById(R.id.txtfingerprint_info);
        text.setText(resId);
    }
}
